package com.example.myerp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.myerp.pojo.Inbound_Scheduling;
import com.example.myerp.pojo.S_gather_details;
import com.example.myerp.mapper.S_gather_detailsMapper;
import com.example.myerp.service.S_gather_detailsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhuxingyu
 * @since 2021-08-20
 */
@Service
@SuppressWarnings("all")
public class S_gather_detailsServiceImpl extends ServiceImpl<S_gather_detailsMapper, S_gather_details> implements S_gather_detailsService {
    @Autowired
    S_gather_detailsMapper mapper;

//    @Override
//    public List<S_gather_details> selDetails(long parentId) {
//        QueryWrapper<S_gather_details> query = new QueryWrapper<>();
//        query.eq("parent_id", parentId);
//        return mapper.selPrentId();
//    }


    @Override
    public List<S_gather_details> selDetails(Long parentId) {
        return mapper.selPrentId(parentId);
    }

    @Override
    public List<Inbound_Scheduling> selInSch(Long parentId) {
        return mapper.selInSch(parentId);
    }
}
